<template>
  <div>
      <input v-model="title">
      <button @click="search">搜索</button>
      <ul>
          <li v-for="i in list">{{i.title}}</li>
      </ul>
  </div>
</template>

<script>
export default {
    data(){
        return{
            title:'',
            list:[]
        }
    },
    methods:{
        search(){
            this.axios.get('course/search?title='+this.title).then(res=>{
                this.list = res.data.list
            })
        }
    }

}
</script>

<style>

</style>